<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>02-28</title>
	<script type="text/javascript">
			window.onload = function  () {
			
				box=document.getElementsByClassName("box");

				x=0;

				box[0].onclick = function  () {
					if (x==0) {

						res = box1[0].textContent;

						box[0].textContent = res ;

						box1[0].style.display = "none";
					x=1;
				}

					else{

						box[0].textContent = " " ;

						box1[0].style.display = "block";
					x=0;
				}
					
				res = box[1].textContent=text;
						
				}

				box1 = document.getElementsByClassName("box1");


				alert(box);
			}





	</script>
	<style type="text/css">
		div{
			width: 200px;
			height: 200px;
			background: red;
			margin-top: 10px;
		}s
	</style>
	
	
</head>
<body>
		<div class="box"></div>
		<div class="box1">我出现了</div>	
</body>
</html>